<!DOCTYPE html>
<html lang="en" xmlns:th="www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h3>templates目录下的文件</h3>

<table width="80%" border="1px">
    <tr>
        <td>key</td>
        <td>名称</td>
        <td>密码</td>
        <td>操作</td>
    </tr>

    <tr th:each="entry: ${map}">

        <td th:text="${entry.key}">key</td>
        <td th:text="${entry.value.userName}">名称</td>
        <td th:text="${entry.value.password}">密码</td>
        <td>
            <input type="button" value="修改" />
            <input type="button" value="删除" />
        </td>
    </tr>
</table>
</body>
</html>
